package cn.ecnu.user.mapper;

import cn.ecnu.user.pojo.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleMapper {

    @Select("SELECT * FROM `role` WHERE role_id = #{id}")
    Role getRoleById(@Param("id") Integer rid);
}
